package com.marry.shirodemo.service.impl;

import com.marry.shirodemo.entity.UserInfo;
import com.marry.shirodemo.reposiory.UserInfoRepository;
import com.marry.shirodemo.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ml
 * @create 2017-11-03--17:29
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoRepository userInfoRepository;
    @Override
    public UserInfo findByUserName(String username) {
        System.out.println("UserInfoServiceImpl.findByUserName");

        return userInfoRepository.findByUsername(username);
    }
}
